VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmAbrirReporteEmpleadosTop 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Reporte Empleados Top"
   ClientHeight    =   3165
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4995
   Icon            =   "frmAbrirReporteEmpleadosTop.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   3165
   ScaleWidth      =   4995
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton cmdSalir 
      BackColor       =   &H80000014&
      Cancel          =   -1  'True
      Caption         =   "&Salir"
      Height          =   375
      Left            =   3540
      MaskColor       =   &H00FFFFFF&
      Style           =   1  'Graphical
      TabIndex        =   10
      Top             =   2790
      Width           =   1425
   End
   Begin VB.CommandButton cmdMostrar 
      BackColor       =   &H80000014&
      Caption         =   "&Mostrar"
      Height          =   375
      Left            =   2100
      MaskColor       =   &H00FFFFFF&
      Style           =   1  'Graphical
      TabIndex        =   9
      Top             =   2790
      Width           =   1425
   End
   Begin VB.Frame fraContenedor 
      BackColor       =   &H00808080&
      BorderStyle     =   0  'None
      ClipControls    =   0   'False
      Height          =   2295
      Left            =   0
      TabIndex        =   0
      Top             =   390
      Width           =   9015
      Begin VB.ComboBox cboCantidad 
         Height          =   315
         Left            =   1350
         Style           =   2  'Dropdown List
         TabIndex        =   3
         Top             =   1590
         Width           =   885
      End
      Begin VB.Frame frParametros 
         BackColor       =   &H80000014&
         Height          =   615
         Left            =   -30
         TabIndex        =   1
         Top             =   0
         Width           =   15255
         Begin VB.Label Label2 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "Seleccione el rango de Fechas"
            BeginProperty Font 
               Name            =   "MS Sans Serif"
               Size            =   12
               Charset         =   0
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   300
            Left            =   120
            TabIndex        =   2
            Top             =   240
            Width           =   3720
         End
      End
      Begin MSComCtl2.DTPicker dtFin 
         Height          =   315
         Left            =   1350
         TabIndex        =   4
         Top             =   1230
         Width           =   1665
         _ExtentX        =   2937
         _ExtentY        =   556
         _Version        =   393216
         Format          =   52035585
         CurrentDate     =   38745
      End
      Begin MSComCtl2.DTPicker dtInicio 
         Height          =   315
         Left            =   1350
         TabIndex        =   5
         Top             =   870
         Width           =   1665
         _ExtentX        =   2937
         _ExtentY        =   556
         _Version        =   393216
         Format          =   52035585
         CurrentDate     =   38745
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "Empleados :"
         ForeColor       =   &H8000000E&
         Height          =   195
         Left            =   270
         TabIndex        =   8
         Top             =   1650
         Width           =   870
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "Desde :"
         ForeColor       =   &H8000000E&
         Height          =   195
         Left            =   240
         TabIndex        =   7
         Top             =   960
         Width           =   555
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "Hasta :"
         ForeColor       =   &H8000000E&
         Height          =   195
         Left            =   240
         TabIndex        =   6
         Top             =   1320
         Width           =   510
      End
   End
   Begin VB.Label lblTitulo 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Reporte Empleados Top"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   360
      Left            =   60
      TabIndex        =   11
      Top             =   0
      Width           =   3105
   End
End
Attribute VB_Name = "frmAbrirReporteEmpleadosTop"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private mvarLista As New Collection
Private control As New cReporte

Private Sub llenaEmpleados()
Dim i As Integer
For i = 5 To 30 Step 3
    Me.cboCantidad.AddItem i
Next
Me.cboCantidad.ListIndex = 0
End Sub

Private Sub cmdMostrar_Click()
Dim bparm As New BParametrosReporte
bparm.dFechaIni = Me.dtInicio.value
bparm.dFechaFin = Me.dtFin.value
bparm.nNumRegistros = Val(Me.cboCantidad.Text)

control.mostrarReporteEmpleadosTop bparm
End Sub

Private Sub Form_Load()
Me.dtInicio.value = Date
Me.dtFin.value = Date
llenaEmpleados
End Sub

Private Sub cmdSalir_Click()
Unload Me
End Sub




